home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2006 May / PCWMAY06.iso / Software / Resources / Partition Logic 0.61 / partlogic-0.61.iso / system / headers / errno.h < prev    next >
C/C++ Source or Header  |  2006-01-31  |  5KB  |  97 lines

  1. // 
  2. //  Visopsys
  3. //  Copyright (C) 1998-2006 J. Andrew McLaughlin
  4. //  
  5. //  This library is free software; you can redistribute it and/or modify it
  6. //  under the terms of the GNU Lesser General Public License as published by
  7. //  the Free Software Foundation; either version 2.1 of the License, or (at
  8. //  your option) any later version.
  9. //
  10. //  This library is distributed in the hope that it will be useful, but
  11. //  WITHOUT ANY WARRANTY; without even the implied warranty of
  12. //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser
  13. //  General Public License for more details.
  14. //
  15. //  You should have received a copy of the GNU Lesser General Public License
  16. //  along with this library; if not, write to the Free Software Foundation,
  17. //  Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  18. //
  19. //  errno.h
  20. //
  21.  
  22. // This is the Visopsys version of the standard header file errno.h
  23.  
  24. #if !defined(_ERRNO_H)
  25.  
  26. // This is where we get all the error numbers that the Visopsys kernel
  27. // understands
  28. #include <sys/errors.h>
  29.  
  30. // The global error code variable
  31. extern int errno;
  32.  
  33. // This is where we translate the Visopsys kernel's error codes into
  34. // names that are more familiar to unixy people.  If there is no Visopsys
  35. // equivalent, we assign ERR_ERROR (which is just an error code with no
  36. // additional information
  37.  
  38. #define EPERM   ERR_PERMISSION     // Not super-user
  39. #define ENOENT  ERR_NOSUCHFILE     // No such file or directory
  40. #define ESRCH   ERR_NOSUCHPROCESS  // No such process
  41. #define EINTR   ERR_KILLED         // interrupted system call
  42. #define EIO     ERR_IO             // I/O error
  43. #define ENXIO   ERR_NOSUCHENTRY    // No such device or address
  44. #define E2BIG   ERR_ARGUMENTCOUNT  // Arg list too long
  45. #define ENOEXEC ERR_EXECUTE        // Exec format error
  46. #define EBADF   ERR_NOSUCHFILE     // Bad file number
  47. #define ECHILD  ERR_NOSUCHPROCESS  // No children
  48. #define EAGAIN  ERR_NOFREE         // Resource temporarily unavailable
  49. #define ENOMEM  ERR_MEMORY         // Not enough memory
  50. #define EACCES  ERR_PERMISSION     // Permission denied
  51. #define EFAULT  ERR_NULLPARAMETER  // NULL address
  52. #define ENOTBLK ERR_NOSUCHDRIVER   // Block device required
  53. #define EBUSY   ERR_BUSY           // Resource busy
  54. #define EEXIST  ERR_ALREADY        // File already exists
  55. #define EXDEV   ERR_INVALID        // Cross-device link
  56. #define ENODEV  ERR_NOSUCHDRIVER   // No such device
  57. #define ENOTDIR ERR_NOTADIR        // Not a directory
  58. #define EISDIR  ERR_NOTAFILE       // Is a directory
  59. #define EINVAL  ERR_INVALID        // Invalid argument
  60. #define ENFILE  ERR_NOFREE         // File table overflow
  61. #define EMFILE  ERR_NOFREE         // Too many open files
  62. #define ENOTTY  ERR_INVALID        // Inappropriate ioctl for device
  63. #define ETXTBSY ERR_BUSY           // Text file busy
  64. #define EFBIG   ERR_BOUNDS         // File too large
  65. #define ENOSPC  ERR_NOFREE         // No space left on device
  66. #define ESPIPE  ERR_INVALID        // Illegal seek
  67. #define EROFS   ERR_NOCREATE       // Read only file system
  68. #define EMLINK  ERR_NOFREE         // Too many links
  69. #define EPIPE   ERR_KILLED         // Broken pipe
  70. #define EDOM    ERR_DOMAIN         // Math arg out of domain of function
  71. #define ERANGE  ERR_RANGE          // Math result not representable
  72. #define ENOMSG  ERR_NODATA         // No message of desired type
  73. #define EIDRM   ERR_ERROR          // Identifier removed
  74. #define ECHRNG  ERR_RANGE          // Channel number out of range
  75. #define EL2NSYNC ERR_ERROR         // Level 2 not synchronized
  76. #define EL3HLT  ERR_ERROR          // Level 3 halted
  77. #define EL3RST  ERR_ERROR          // Level 3 reset
  78. #define ELNRNG  ERR_RANGE          // Link number out of range
  79. #define EUNATCH ERR_NOSUCHDRIVER   // Protocol driver not attached
  80. #define ENOCSI  ERR_ERROR          // No CSI structure available
  81. #define EL2HLT  ERR_ERROR          // Level 2 halted
  82. #define EDEADLK ERR_DEADLOCK       // Deadlock condition.
  83. #define ENOLCK  ERR_NOLOCK         // No record locks available.
  84. #define ECANCELED ERR_KILLED       // Operation canceled
  85. #define ENOTSUP ERR_NOTIMPLEMENTED // Operation not supported
  86. #define ENAMETOOLONG ERR_BOUNDS    // Name too long
  87. #define EILSEQ  ERR_INVALID        // Illegal byte sequence.
  88. #define EOVERFLOW ERR_BOUNDS       // Value too large for defined data type
  89. #define EBADRQC ERR_NOSUCHFUNCTION // No such function
  90. #define ENOTEMPTY ERR_NOTEMPTY     // Not empty
  91.  
  92. // Synonyms -- compatibility
  93. #define EOPNOTSUPP ENOTSUP
  94.  
  95. #define _ERRNO_H
  96. #endif
  97.